package com.example.thymeleaf1.service;

import com.example.thymeleaf1.dao.T_articleDao;
import com.example.thymeleaf1.domain.T_article;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class T_articleService {
    @Autowired
    private T_articleDao t_articleDao;
    public List<T_article> getAll() {
        return t_articleDao.selectList(null);
    }
}
